package com.javaee.service.impl;

import com.javaee.dao.TeachingClassDao;
import com.javaee.entity.TeachingClass;
import com.javaee.service.TeachingClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeachingClassServiceImpl implements TeachingClassService {
    @Autowired
    private TeachingClassDao teachingClassDao;

    @Override
    public boolean create(TeachingClass teachingclass) {return teachingClassDao.create(teachingclass)>0;}

    @Override
    public boolean related(TeachingClass teachingclass) {
        return teachingClassDao.related(teachingclass)>0;
    }

    @Override
    public boolean allocate(TeachingClass teachingclass) {
        return teachingClassDao.allocate(teachingclass)>0;
    }
}
